﻿<%@ Page Language="C#" MasterPageFile="~/User.master" Theme="User" AutoEventWireup="true" CodeFile="USearchProducts.aspx.cs"
    Inherits="Pages_USearchProducts" Title="Sản Phẩm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
<asp:Literal ID="ltScript" runat="server"></asp:Literal>
<asp:Literal ID="ltCss" runat="server"></asp:Literal>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="PageStyle">
        <div class="Content">
            <div class="HeaderStyle">
                <span class="HeadItem">Sản Phẩm</span>
            </div>
            <div class="FormStyle" style="padding-left: 0; padding-right: 0;">
                <div class="MsgError">
                    <asp:CustomValidator ID="cval" runat="server" ValidationGroup="cate" Display="Dynamic"></asp:CustomValidator></div>
                <asp:DataList CellSpacing="20" ID="listData" ShowHeader="False" CssClass="ListStyle"
                    runat="server" RepeatColumns="4" DataKeyField="ProID" DataSourceID="odsCate"
                    OnItemCommand="listData_ItemCommand">
                    <ItemTemplate>
                        <center>
                            <div class="Item">
                                <div>
                                    <img alt="no image" width="130" height="120" src='<%# ImgPath + Eval("Hinh").ToString() %>' /></div>
                                <div>
                                    <%# Eval("Ten") %>
                                </div>
                                <div>
                                    <%# int.Parse(Eval("GIA").ToString()).ToString("$#,#", myInfo) %>
                                </div>
                                <div>
                                    <asp:Button CssClass="cmdBuy" ID="btBuy" CommandName="cmdBuy" CommandArgument='<%# Eval("ProID") %>'
                                        runat="server" Text="Mua" />
                                    <%--<asp:LinkButton ID="btBuy" runat="server" Text="Mua" CommandName="Update" CommandArgument='<%# Eval("ProID") %>'></asp:LinkButton>--%>
                                </div>
                            </div>
                        </center>
                    </ItemTemplate>
                    <ItemStyle CssClass="ListItem" />
                    <HeaderStyle CssClass="ListHeader" />
                    <FooterStyle CssClass="ListFooter" />
                </asp:DataList>
                <asp:ObjectDataSource ID="odsCate" runat="server" SelectMethod="filterProducts" TypeName="Jewelry.BussinessLayer.ProductBLL"
                    OnObjectCreating="odsCateCreating" OnSelected="odsCateSelected" OnSelecting="odsCateSelecting">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="strCate" QueryStringField="cid" Type="String" />
                        <asp:Parameter Name="listFeature" Type="Object" />
                        <asp:Parameter Name="strStatus" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </div>
            <div class="FooterStyle">
            </div>
        </div>
    </div>
</asp:Content>
